<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //for循环可以执行相同的代码
        for (var i = 0; i <= 100; i++) {
            console.log('123')
        }
        //可以让用户控制输出的次数
        var num = prompt('输入次数');
        for (var i =1;i<=num;i++){
            console.log('我错了')
        }
    </script>
</head>
<body>

</body>
</html>